import {ParamDefType} from "./param-def-type";
import {NameValue} from "./name-value";

export class ParamDef {
  type:ParamDefType;
  name:string;
  values:NameValue[] =[];



  constructor(type: ParamDefType, name: string) {
    this.type = type;
    this.name = name;
  }
  public addNameValue(name:string,val:any,tip?:string):NameValue{
    let item = new NameValue(name,val)
    this.values.push(item)
    return item;
  }

}
